[INFO] cloning repository https://github.com/levackt/stakepool
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/levackt/stakepool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] bc3495309525ab952fee3ab48fb1e0fe8d7d2e5f
[INFO] building levackt/stakepool against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/levackt/stakepool on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] removed /workspace/builds/worker-2/source/.cargo/config
[INFO] started tweaking git repo https://github.com/levackt/stakepool
[INFO] finished tweaking git repo https://github.com/levackt/stakepool
[INFO] tweaked toml for git repo https://github.com/levackt/stakepool written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/levackt/stakepool already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] ac746c48dee3dc02b29f8d41ef4963a0a9c6d03217a84791d39a79d9204f4f8f
[INFO] running `Command { std: "docker" "start" "-a" "ac746c48dee3dc02b29f8d41ef4963a0a9c6d03217a84791d39a79d9204f4f8f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ac746c48dee3dc02b29f8d41ef4963a0a9c6d03217a84791d39a79d9204f4f8f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ac746c48dee3dc02b29f8d41ef4963a0a9c6d03217a84791d39a79d9204f4f8f", kill_on_drop: false }`
[INFO] [stdout] ac746c48dee3dc02b29f8d41ef4963a0a9c6d03217a84791d39a79d9204f4f8f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] aecf2da5bd78c1079ee894fe33b8d3d4b84514e6ef1bb604220f0a4a07eaf4b1
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "aecf2da5bd78c1079ee894fe33b8d3d4b84514e6ef1bb604220f0a4a07eaf4b1", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_derive v1.0.123
[INFO] [stderr]    Compiling serde v1.0.123
[INFO] [stderr]    Compiling doc-comment v0.3.3
[INFO] [stderr]    Compiling serde_json v1.0.62
[INFO] [stderr]    Compiling schemars v0.7.6
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]    Compiling base64 v0.11.0
[INFO] [stderr]    Compiling byte-tools v0.3.1
[INFO] [stderr]    Compiling subtle v1.0.0
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling opaque-debug v0.2.3
[INFO] [stderr]    Compiling fake-simd v0.1.2
[INFO] [stderr]    Compiling subtle v2.4.0
[INFO] [stderr]    Compiling hex v0.4.2
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling digest v0.8.1
[INFO] [stderr]    Compiling block-padding v0.1.5
[INFO] [stderr]    Compiling crypto-mac v0.7.0
[INFO] [stderr]    Compiling block-buffer v0.7.3
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling hmac v0.7.1
[INFO] [stderr]    Compiling syn v1.0.60
[INFO] [stderr]    Compiling sha2 v0.8.2
[INFO] [stderr]    Compiling hmac-drbg v0.2.0
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling sha2 v0.9.3
[INFO] [stderr]    Compiling rust_decimal v1.10.3
[INFO] [stderr]    Compiling libsecp256k1 v0.3.5
[INFO] [stderr]    Compiling serde_derive_internals v0.25.0
[INFO] [stderr]    Compiling snafu-derive v0.6.10
[INFO] [stderr]    Compiling schemars_derive v0.7.6
[INFO] [stderr]    Compiling snafu v0.6.10
[INFO] [stderr]    Compiling serde-json-wasm v0.2.3
[INFO] [stderr]    Compiling bincode2 v2.0.1
[INFO] [stderr]    Compiling cosmwasm-std v0.10.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)
[INFO] [stderr]    Compiling cosmwasm-storage v0.10.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)
[INFO] [stderr]    Compiling secret-toolkit-serialization v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit-utils v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit-crypto v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit-snip20 v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit-storage v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling stakepool v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Decimal`, `FullDelegation`, `Validator`
[INFO] [stdout]  --> src/contract.rs:4:75
[INFO] [stdout]   |
[INFO] [stdout] 4 |     log, to_binary, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Decimal, Env, Extern,
[INFO] [stdout]   |                                                                           ^^^^^^^
[INFO] [stdout] 5 |     FullDelegation, HandleResponse, HumanAddr, InitResponse, Querier, QueryResult, ReadonlyStorage,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 6 |     StdError, StdResult, Storage, Uint128, Validator,
[INFO] [stdout]   |                                            ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RngCore`
[INFO] [stdout]   --> src/contract.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | use rand::{RngCore, SeedableRng};
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `withdraw_to_self`
[INFO] [stdout]   --> src/contract.rs:22:29
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::staking::{stake, withdraw_to_self, withdraw_to_winner, get_rewards, };
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `VALIDATOR_SET_KEY`, `log_string_read`
[INFO] [stdout]   --> src/contract.rs:24:60
[INFO] [stdout]    |
[INFO] [stdout] 24 |     get_receiver_hash, get_transfers, get_txs, log_string, log_string_read, lottery, lottery_read,
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     Lottery, ReadonlyBalances, ReadonlyConfig, VALIDATOR_SET_KEY, store_win
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]    --> src/contract.rs:116:16
[INFO] [stdout]     |
[INFO] [stdout] 116 |     valset.add((init_config.validator()));
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BondedRatioResponse`, `InflationResponse`, `MintQuery`
[INFO] [stdout]  --> src/staking.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BondedRatioResponse, Coin, CosmosMsg, DistQuery, HumanAddr, InflationResponse, MintQuery,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^                                         ^^^^^^^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Bucket`, `ReadonlyBucket`, `bucket_read`, `bucket`
[INFO] [stdout]  --> src/state.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     bucket, bucket_read, singleton, singleton_read, Bucket, PrefixedStorage, ReadonlyBucket,
[INFO] [stdout]   |     ^^^^^^  ^^^^^^^^^^^                             ^^^^^^                   ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rust_decimal::prelude::*`
[INFO] [stdout]  --> src/state.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rust_decimal::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rust_decimal::Decimal`
[INFO] [stdout]  --> src/state.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rust_decimal::Decimal;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Binary`, `CosmosMsg`, `HumanAddr`, `Uint128`, `WasmMsg`
[INFO] [stdout]  --> src/utils.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use cosmwasm_std::{Binary, CosmosMsg, HumanAddr, StdError, StdResult, Uint128, WasmMsg};
[INFO] [stdout]   |                    ^^^^^^  ^^^^^^^^^  ^^^^^^^^^                       ^^^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_locked_balance`
[INFO] [stdout]  --> src/staking.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn get_locked_balance<Q: Querier>(
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_total_onchain_balance`
[INFO] [stdout]   --> src/staking.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn get_total_onchain_balance<Q: Querier>(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_bonded`
[INFO] [stdout]   --> src/staking.rs:57:8
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub fn get_bonded<Q: Querier>(querier: &Q, contract: &HumanAddr) -> StdResult<Uint128> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_unbonding`
[INFO] [stdout]   --> src/staking.rs:78:8
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub fn get_unbonding<Q: Querier>(querier: &Q, contract: &HumanAddr) -> StdResult<Uint128> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `withdraw_to_self`
[INFO] [stdout]    --> src/staking.rs:103:8
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub fn withdraw_to_self(validator: &String) -> CosmosMsg {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `restake`
[INFO] [stdout]    --> src/staking.rs:117:8
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub fn restake(validator: &String, amount: u128) -> Vec<CosmosMsg> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `undelegate`
[INFO] [stdout]    --> src/staking.rs:143:8
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub fn undelegate(validator: &String, amount: u128) -> CosmosMsg {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `entries`
[INFO] [stdout]    --> src/state.rs:786:8
[INFO] [stdout]     |
[INFO] [stdout] 786 |     fn entries(&self) -> Vec<(CanonicalAddr, Uint128)> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `dec_to_uint`
[INFO] [stdout]   --> src/utils.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn dec_to_uint(dec: String) -> StdResult<u128> {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `remove`
[INFO] [stdout]   --> src/validator_set.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub fn remove(&mut self, address: &String, force: bool) -> StdResult<()> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `unbond`
[INFO] [stdout]   --> src/validator_set.rs:62:12
[INFO] [stdout]    |
[INFO] [stdout] 62 |     pub fn unbond(&mut self, to_stake: u128) -> StdResult<String> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `get_winner`
[INFO] [stdout]    --> src/validator_set.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout] 100 |     pub fn get_winner(&mut self) -> Option<&String> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/contract.rs:765:5
[INFO] [stdout]     |
[INFO] [stdout] 765 |     lottery(&mut deps.storage).save(&a_lottery);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 23 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 59.58s
[INFO] running `Command { std: "docker" "inspect" "aecf2da5bd78c1079ee894fe33b8d3d4b84514e6ef1bb604220f0a4a07eaf4b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aecf2da5bd78c1079ee894fe33b8d3d4b84514e6ef1bb604220f0a4a07eaf4b1", kill_on_drop: false }`
[INFO] [stdout] aecf2da5bd78c1079ee894fe33b8d3d4b84514e6ef1bb604220f0a4a07eaf4b1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fe22ebf55077f42a78a7ef2a7e5fc0d88c0582040aa615880d7ef2c258f657e1
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "fe22ebf55077f42a78a7ef2a7e5fc0d88c0582040aa615880d7ef2c258f657e1", kill_on_drop: false }`
[INFO] [stderr]    Compiling cbindgen v0.13.2
[INFO] [stderr]    Compiling sgx_types v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7)
[INFO] [stderr]    Compiling parity-wasm v0.41.0
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling memmap v0.7.0
[INFO] [stdout] warning: unused imports: `Decimal`, `FullDelegation`, `Validator`
[INFO] [stdout]  --> src/contract.rs:4:75
[INFO] [stdout]   |
[INFO] [stdout] 4 |     log, to_binary, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Decimal, Env, Extern,
[INFO] [stdout]   |                                                                           ^^^^^^^
[INFO] [stdout] 5 |     FullDelegation, HandleResponse, HumanAddr, InitResponse, Querier, QueryResult, ReadonlyStorage,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 6 |     StdError, StdResult, Storage, Uint128, Validator,
[INFO] [stdout]   |                                            ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RngCore`
[INFO] [stdout]   --> src/contract.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | use rand::{RngCore, SeedableRng};
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `withdraw_to_self`
[INFO] [stdout]   --> src/contract.rs:22:29
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::staking::{stake, withdraw_to_self, withdraw_to_winner, get_rewards, };
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `VALIDATOR_SET_KEY`, `log_string_read`
[INFO] [stdout]   --> src/contract.rs:24:60
[INFO] [stdout]    |
[INFO] [stdout] 24 |     get_receiver_hash, get_transfers, get_txs, log_string, log_string_read, lottery, lottery_read,
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     Lottery, ReadonlyBalances, ReadonlyConfig, VALIDATOR_SET_KEY, store_win
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]    --> src/contract.rs:116:16
[INFO] [stdout]     |
[INFO] [stdout] 116 |     valset.add((init_config.validator()));
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling rand_chacha v0.3.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.24
[INFO] [stderr]    Compiling derive_more v0.99.11
[INFO] [stderr]    Compiling toml v0.5.8
[INFO] [stderr]    Compiling cosmwasm-schema v0.10.1
[INFO] [stdout] warning: unused imports: `BondedRatioResponse`, `InflationResponse`, `MintQuery`
[INFO] [stdout]  --> src/staking.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BondedRatioResponse, Coin, CosmosMsg, DistQuery, HumanAddr, InflationResponse, MintQuery,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^                                         ^^^^^^^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Bucket`, `ReadonlyBucket`, `bucket_read`, `bucket`
[INFO] [stdout]  --> src/state.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     bucket, bucket_read, singleton, singleton_read, Bucket, PrefixedStorage, ReadonlyBucket,
[INFO] [stdout]   |     ^^^^^^  ^^^^^^^^^^^                             ^^^^^^                   ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rust_decimal::prelude::*`
[INFO] [stdout]  --> src/state.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rust_decimal::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rust_decimal::Decimal`
[INFO] [stdout]  --> src/state.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rust_decimal::Decimal;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Binary`, `CosmosMsg`, `HumanAddr`, `Uint128`, `WasmMsg`
[INFO] [stdout]  --> src/utils.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use cosmwasm_std::{Binary, CosmosMsg, HumanAddr, StdError, StdResult, Uint128, WasmMsg};
[INFO] [stdout]   |                    ^^^^^^  ^^^^^^^^^  ^^^^^^^^^                       ^^^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_locked_balance`
[INFO] [stdout]  --> src/staking.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn get_locked_balance<Q: Querier>(
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_total_onchain_balance`
[INFO] [stdout]   --> src/staking.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn get_total_onchain_balance<Q: Querier>(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_bonded`
[INFO] [stdout]   --> src/staking.rs:57:8
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub fn get_bonded<Q: Querier>(querier: &Q, contract: &HumanAddr) -> StdResult<Uint128> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_unbonding`
[INFO] [stdout]   --> src/staking.rs:78:8
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub fn get_unbonding<Q: Querier>(querier: &Q, contract: &HumanAddr) -> StdResult<Uint128> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `withdraw_to_self`
[INFO] [stdout]    --> src/staking.rs:103:8
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub fn withdraw_to_self(validator: &String) -> CosmosMsg {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `restake`
[INFO] [stdout]    --> src/staking.rs:117:8
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub fn restake(validator: &String, amount: u128) -> Vec<CosmosMsg> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `undelegate`
[INFO] [stdout]    --> src/staking.rs:143:8
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub fn undelegate(validator: &String, amount: u128) -> CosmosMsg {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `entries`
[INFO] [stdout]    --> src/state.rs:786:8
[INFO] [stdout]     |
[INFO] [stdout] 786 |     fn entries(&self) -> Vec<(CanonicalAddr, Uint128)> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `dec_to_uint`
[INFO] [stdout]   --> src/utils.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn dec_to_uint(dec: String) -> StdResult<u128> {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `remove`
[INFO] [stdout]   --> src/validator_set.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub fn remove(&mut self, address: &String, force: bool) -> StdResult<()> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `unbond`
[INFO] [stdout]   --> src/validator_set.rs:62:12
[INFO] [stdout]    |
[INFO] [stdout] 62 |     pub fn unbond(&mut self, to_stake: u128) -> StdResult<String> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `get_winner`
[INFO] [stdout]    --> src/validator_set.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout] 100 |     pub fn get_winner(&mut self) -> Option<&String> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/contract.rs:765:5
[INFO] [stdout]     |
[INFO] [stdout] 765 |     lottery(&mut deps.storage).save(&a_lottery);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 23 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling clap v2.33.3
[INFO] [stderr]    Compiling rand v0.8.3
[INFO] [stderr]    Compiling sgx_urts v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7)
[INFO] [stderr]    Compiling tempfile v3.2.0
[INFO] [stderr]    Compiling thiserror v1.0.24
[INFO] [stderr]    Compiling enclave-ffi-types v0.1.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)
[INFO] [stderr] error: failed to run custom build command for `enclave-ffi-types v0.1.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/enclave-ffi-types-ca3ef2c365fcd222/build-script-build` (exit status: 1)
[INFO] [stderr]   --- stderr
[INFO] [stderr]   Error: CBindgenError { source: CargoMetadata("/opt/rustwide/cargo-home/git/checkouts/secretnetwork-2885a5c51d1243af/490fba9/cosmwasm/packages/enclave-ffi-types/Cargo.toml", Metadata(Output { status: ExitStatus(ExitStatus(25856)), stdout: "", stderr: " Downloading crates ...\nwarning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nwarning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nwarning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nwarning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nwarning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nwarning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nerror: failed to download from `https://crates.io/api/v1/crates/clap/2.33.2/download`\n\nCaused by:\n  [6] Couldn't resolve host name (Could not resolve host: crates.io)\n" })) }
[INFO] running `Command { std: "docker" "inspect" "fe22ebf55077f42a78a7ef2a7e5fc0d88c0582040aa615880d7ef2c258f657e1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fe22ebf55077f42a78a7ef2a7e5fc0d88c0582040aa615880d7ef2c258f657e1", kill_on_drop: false }`
[INFO] [stdout] fe22ebf55077f42a78a7ef2a7e5fc0d88c0582040aa615880d7ef2c258f657e1
